﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Class1
{
    //在学生类中定义编号（Id）、姓名（Name）、性别（Sex）、身份证号（Cardid）、联系方式（Tel）、
    //专业（Major）、年级（Grade）7 个属性，并定义一个方法在控制台输出这些属性的值。
    class Student : Public
    {
        private string Major;
        private string Grade;
        public string MAJOR
        {
            get { return this.Major; }
            set { this.Major = value; }
        }
        public string GRADE
        {
            get { return this.Grade; }
            set { this.Grade = value; }
        }
        public void stu1(int Id, string Name, char Sex, string Cardid, long Te, string maj, string gar)
        {
            Console.WriteLine("{0}的编号为{1}，性别为{2}，身份证号是{3}，联系方式为{4}，专业是{5}，是{6}年级学生。", this.NAME, this.ID, this.SEX, this.CARDID, this.TEL, this.MAJOR, this.GRADE);
        }
        public void stu2()
                {
            base.ID = 2;
            base.NAME = "乔碧萝";
            base.SEX = '女';
            base.CARDID = "35020018893675889x";
            base.TEL = 17037385748;
            this.MAJOR = "直播经营";
            this.GRADE = "十一";
            Console.WriteLine("{0}的编号为{1}，性别为{2}，身份证号是{3}，联系方式为{4}，专业是{5}，是{6}年级学生。", this.NAME, this.ID, this.SEX, this.CARDID, this.TEL, this.MAJOR, this.GRADE);
        }
}
}
